package com.jinzhi.jzweb.dao.resourceLibrary;


import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.jinzhi.jzweb.domain.resourceLibrary.SecretKey;
import org.apache.ibatis.annotations.Param;

/**
 * (SecretKey)表数据库访问层
 *
 * @author makejava
 * @since 2024-05-09 10:24:37
 */
public interface SecretKeyDao extends BaseMapper<SecretKey> {

    /**
     * 根据学生id获取教师Id
     * @param userId
     * @return
     */
    Long getTeacherById(@Param("userId") Long userId);

    /**
     * 根据教师id，资源id获取资源
     * @param userId
     * @param allocationId
     */
    Long isAssets(@Param("userId") Long userId,@Param("allocationId") Long allocationId);
}

